<?php
class Salida extends Modelo_base {

	var $table = 'salidas';

	//var $has_one = array('tanque','puesto');
    //var $has_many = array('despacho','amarma_apertura');
   

    // Validaciones de campos
    var $validation = array(
       
         'nroSalida' => array(
            'label' => 'Nro Salida',
            'rules' => array('required', 'int'),
            'get_rules' => array('int')
            ),
         'acumulado' => array(
            'label' => 'Acumulado',
            'rules' => array('required', 'float'),
            'get_rules' => array('float')
            ),
        'calibracion' => array(
            'label' => 'Calibración',
            'rules' => array('required', 'float'),
            'get_rules' => array('float')
            ),
       
        'ultimoDespacho' => array(
            'label' => 'Último Despacho',
            'rules' => array('required', 'float'),
            )
        
    );

    // Optionally, don't include a constructor if you don't need one.
    function __construct($id = NULL)
    {
        parent::__construct($id);
    }

   public function getPuesto()
   {
       return new puesto($this->puestos_id);
   }

    public function getTanque()
   {
       return new tanque($this->tanques_id);
   }
}

/* End of file user_rol.php */
/* Location: ./application/models/user_rol.php */